require("common/vendor.js"), (global.webpackJsonp = global.webpackJsonp || []).push([ [ "xg_o2o/personnel/personnel_tag" ], {
    "15d0": function(t, e, n) {
        "use strict";
        n.d(e, "b", function() {
            return o;
        }), n.d(e, "c", function() {
            return s;
        }), n.d(e, "a", function() {
            return a;
        });
        var a = {
            gracePage: function() {
                return n.e("graceUI/components/gracePage").then(n.bind(null, "1915"));
            },
            graceSelectImgAndUpload: function() {
                return Promise.all([ n.e("common/vendor"), n.e("graceUI/components/graceSelectImgAndUpload") ]).then(n.bind(null, "d7ef"));
            }
        }, o = function() {
            this.$createElement, this._self._c;
        }, s = [];
    },
    "4d9e": function(t, e, n) {
        "use strict";
        (function(t) {
            Object.defineProperty(e, "__esModule", {
                value: !0
            }), e.default = void 0;
            var n = {
                data: function() {
                    return {
                        textareaVal: "",
                        selectedimgs: [],
                        subtxt: "提交",
                        uploadServerUrl: "",
                        uploadImg: "",
                        uploadImgs: "",
                        imgnum: 1,
                        showBack: !1
                    };
                },
                onLoad: function() {
                    var t = getCurrentPages();
                    this.showBack = t.length > 1, this.uploadServerUrl = this.$xRequest.url("entry/wxapp/v4uploadimg"), 
                    this.detailData();
                },
                methods: {
                    imgsChange: function(t) {
                        this.uploadImgs = "", this.selectedimgs = t;
                    },
                    imgLoaded: function(t) {
                        var e = new Array();
                        if (this.subtxt = "提交中", t.length > 0) {
                            for (var n = 0; n < t.length; n++) e[n] = t[n].url;
                            var a = e.join(",");
                            console.log("提交中"), this.confirm(a);
                        } else this.confirm("");
                    },
                    uploaderror: function() {
                        console.log("上传过程遇到错误"), this.subtxt = "提交";
                    },
                    uploadOrder: function() {
                        if ("提交中" != this.subtxt) if ("" == this.uploadImgs) {
                            var e = "请上传至少" + this.imgnum + "张照片";
                            if (this.selectedimgs.length < this.imgnum) return t.showToast({
                                title: e,
                                icon: "none"
                            }), void (this.subtxt = "提交");
                            this.$refs.selectimgandupload.upload();
                        } else this.confirm(this.uploadImgs);
                    },
                    confirm: function(e) {
                        var n = this;
                        if (e) {
                            var a = this.$xSign.sign("v4personnelset");
                            this.$xRequest.request({
                                url: "entry/wxapp/v4personnelset",
                                data: {
                                    op: "upload",
                                    xgsign: a,
                                    img: e,
                                    textareaval: this.textareaVal
                                },
                                success: function(e) {
                                    var a = JSON.parse(n.$Decrypt(e.data.data));
                                    if (-1 == a.info) return t.showModal({
                                        title: "温馨提示",
                                        content: e.data.message,
                                        showCancel: !1,
                                        success: function(t) {
                                            t.confirm;
                                        }
                                    }), void (n.subtxt = "提交");
                                    0 == e.data.errno && 1 == a.info && (n.subtxt = "提交", t.showModal({
                                        title: "温馨提示",
                                        content: "提交成功",
                                        showCancel: !1,
                                        success: function(e) {
                                            e.confirm && t.navigateBack({
                                                delta: 1
                                            });
                                        }
                                    }));
                                }
                            });
                        } else t.showToast({
                            title: "请选择图片",
                            icon: "none"
                        });
                    },
                    detailData: function() {
                        var t = this;
                        this.graceFullLoading = !0;
                        var e = this.$xSign.sign("v4personnelset");
                        this.$xRequest.request({
                            url: "entry/wxapp/v4personnelset",
                            data: {
                                op: "gettag",
                                xgsign: e
                            },
                            success: function(e) {
                                var n = JSON.parse(t.$Decrypt(e.data.data));
                                if (t.graceFullLoading = !1, console.log(n), t.textareaVal = n.tag, n.uploadimgs) {
                                    t.uploadImgs = n.uploadimgs;
                                    var a = n.uploadimgs.split(",");
                                    setTimeout(function() {
                                        t.$refs.selectimgandupload.setItems(a);
                                    }, 300);
                                }
                            }
                        });
                    }
                }
            };
            e.default = n;
        }).call(this, n("543d").default);
    },
    7363: function(t, e, n) {
        "use strict";
        n.r(e);
        var a = n("4d9e"), o = n.n(a);
        for (var s in a) "default" !== s && function(t) {
            n.d(e, t, function() {
                return a[t];
            });
        }(s);
        e.default = o.a;
    },
    "7ecf": function(t, e, n) {},
    a46f: function(t, e, n) {
        "use strict";
        var a = n("7ecf");
        n.n(a).a;
    },
    b0b3: function(t, e, n) {
        "use strict";
        n.r(e);
        var a = n("15d0"), o = n("7363");
        for (var s in o) "default" !== s && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(s);
        n("a46f");
        var i = n("f0c5"), r = Object(i.a)(o.default, a.b, a.c, !1, null, null, null, !1, a.a, void 0);
        e.default = r.exports;
    },
    f97c: function(t, e, n) {
        "use strict";
        (function(t) {
            function e(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            n("4e1e"), e(n("66fd")), t(e(n("b0b3")).default);
        }).call(this, n("543d").createPage);
    }
}, [ [ "f97c", "common/runtime", "common/vendor" ] ] ]);